import Vue from 'vue'
import App from '@/App.vue'
import ElementUI from 'element-ui';
import { Message, MessageBox } from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from '@/router'
import store from '@/store'
import '@/utils/request'
import '@/assets/base.scss'

import VueCookies from 'vue-cookies'
import VueLazyload from 'vue-lazyload'

// 引入 vue-awesome-swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'
//引入 vue-awesome-swiper 样式
import 'swiper/css/swiper.css'
Vue.use(VueAwesomeSwiper)

const loadImg = require('./assets/imgs/loading.png')
Vue.use(VueLazyload, {
  loading: loadImg
})

Vue.use(VueCookies, { expires: '1d'})
Vue.use(ElementUI);
Vue.prototype.$message = Message
Vue.prototype.$confirm = MessageBox.confirm;

Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store
}).$mount('#app')
